import { defineStore } from 'pinia'

const useAppStore = defineStore('app', {
    // 状态
    state () {
        return {
            type: 0
        }
    },
    getters: {
        
    },
    actions: {
        setType (type: number) {
            this.type = type
        }
    },
    persist: {
        key: 'typeKey',
        storage: window.localStorage
    }
})

export default useAppStore